package com.app.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 消费多少送多少系统分成配置
 * </p>
 *
 * @author yoominic
 * @since 2024-07-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_consumption_divide_config")
public class ConsumptionDivideConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单表ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商家比例
     */
    private BigDecimal businessProportion;

    /**
     * 平台比例
     */
    private BigDecimal platformProportion;

    /**
     * 商家ID
     */
    private Integer businessId;

    private Integer voucherExpirationDay;

    /**
     * 用户ID
     */
    private Integer userId;

    private Integer updateUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;

    @TableField(exist = false)
    private String businessNameStr;



}
